﻿using System.Collections.Generic;
using UnityEditor;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [CustomPropertyDrawer(typeof(SkillEditorPrefabDropdownAttribute))]
    public class SkillEditorPrefabDropdown : PrefabDropdownDrawer
    {
    }
    
    public class SkillEditorPrefabDropdownAttribute : PrefabDropdownAttribute
    {
        public SkillEditorPrefabDropdownAttribute()
        {
        }

        public override List<string> GetPrefabList()
        {
            return SkillEditorBlackboard.Instance.GetPrefabList();
        }
        
        public override string GetPrefabGraphPath(string prefabKey)
        {
            return SkillEditorBlackboard.Instance.GetPrefabGraphPath(prefabKey);
        }
    }
}